/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * aboutMeViewPanel.java
 *
 * Created on Dec 3, 2012, 4:05:09 PM
 */
package cs341.cs.uwosh.edu.jBeats;

/**
 *
 * @author haibut41
 */
public class aboutMeViewPanel extends javax.swing.JPanel {

    /** Creates new form aboutMeViewPanel */
    public aboutMeViewPanel() {
        initComponents(); 
    }
    
    public aboutMeViewPanel(User user){
        initComponents();
        favoriteBandLabel.setText(user.getFavoriteBand());
        favoriteBandLabel.setText(user.getFavoriteBand());
        favoriteSongLabel.setText(user.getFavoriteSong());
        favoriteGenreLabel.setText(user.getFavoriteGenre());
        ageLabel.setText(""+user.getAge());
        genderLabel.setText(user.getGender());
        locationLabel.setText(user.getLocation());
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        aboutMePanel = new javax.swing.JPanel();
        aboutMeLabel = new javax.swing.JLabel();
        staticBandLabel = new javax.swing.JLabel();
        staticGenreLabel = new javax.swing.JLabel();
        staticSongLabel = new javax.swing.JLabel();
        favoriteSongLabel = new javax.swing.JLabel();
        favoriteBandLabel = new javax.swing.JLabel();
        favoriteGenreLabel = new javax.swing.JLabel();
        locationLabel = new javax.swing.JLabel();
        staticLocationLabel = new javax.swing.JLabel();
        genderLabel = new javax.swing.JLabel();
        staticGenderLabel = new javax.swing.JLabel();
        ageLabel = new javax.swing.JLabel();
        staticAgeLabel = new javax.swing.JLabel();

        aboutMePanel.setBackground(new java.awt.Color(84, 116, 191));
        aboutMePanel.setBorder(javax.swing.BorderFactory.createEtchedBorder(new java.awt.Color(255, 102, 0), null));
        aboutMePanel.setName("aboutMePanel"); // NOI18N
        aboutMePanel.setPreferredSize(new java.awt.Dimension(326, 75));

        aboutMeLabel.setFont(new java.awt.Font("Dialog", 1, 18));
        aboutMeLabel.setText("About Me:");
        aboutMeLabel.setName("aboutMeLabel"); // NOI18N

        staticBandLabel.setFont(new java.awt.Font("Dialog", 0, 12));
        staticBandLabel.setText("Favorite Band:");
        staticBandLabel.setName("staticBandLabel"); // NOI18N

        staticGenreLabel.setFont(new java.awt.Font("Dialog", 0, 12));
        staticGenreLabel.setText("Favorite Genre:");
        staticGenreLabel.setName("staticGenreLabel"); // NOI18N

        staticSongLabel.setFont(new java.awt.Font("Dialog", 0, 12));
        staticSongLabel.setText("Favorite Song:");
        staticSongLabel.setName("staticSongLabel"); // NOI18N

        favoriteSongLabel.setText("Hit Me Baby One More Time");
        favoriteSongLabel.setName("favoriteSongLabel"); // NOI18N

        favoriteBandLabel.setText("Britney Spears");
        favoriteBandLabel.setName("favoriteBandLabel"); // NOI18N

        favoriteGenreLabel.setText("Pop");
        favoriteGenreLabel.setName("favoriteGenreLabel"); // NOI18N

        locationLabel.setText("Wisconsin");
        locationLabel.setName("locationLabel"); // NOI18N

        staticLocationLabel.setFont(new java.awt.Font("Dialog", 0, 12));
        staticLocationLabel.setText("Location:");
        staticLocationLabel.setName("staticLocationLabel"); // NOI18N

        genderLabel.setText("Male");
        genderLabel.setName("genderLabel"); // NOI18N

        staticGenderLabel.setFont(new java.awt.Font("Dialog", 0, 12));
        staticGenderLabel.setText("Gender:");
        staticGenderLabel.setName("staticGenderLabel"); // NOI18N

        ageLabel.setText("4096");
        ageLabel.setName("ageLabel"); // NOI18N

        staticAgeLabel.setFont(new java.awt.Font("Dialog", 0, 12));
        staticAgeLabel.setText("Age:");
        staticAgeLabel.setName("staticAgeLabel"); // NOI18N

        javax.swing.GroupLayout aboutMePanelLayout = new javax.swing.GroupLayout(aboutMePanel);
        aboutMePanel.setLayout(aboutMePanelLayout);
        aboutMePanelLayout.setHorizontalGroup(
            aboutMePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(aboutMePanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(aboutMePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(aboutMePanelLayout.createSequentialGroup()
                        .addComponent(staticGenreLabel)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(favoriteGenreLabel))
                    .addGroup(aboutMePanelLayout.createSequentialGroup()
                        .addComponent(staticSongLabel)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(favoriteSongLabel))
                    .addGroup(aboutMePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addComponent(aboutMeLabel, javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(aboutMePanelLayout.createSequentialGroup()
                            .addComponent(staticAgeLabel)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addGroup(aboutMePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(genderLabel)
                                .addComponent(ageLabel))))
                    .addComponent(staticGenderLabel)
                    .addGroup(aboutMePanelLayout.createSequentialGroup()
                        .addComponent(staticLocationLabel)
                        .addGap(18, 18, 18)
                        .addComponent(locationLabel))
                    .addGroup(aboutMePanelLayout.createSequentialGroup()
                        .addComponent(staticBandLabel)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(favoriteBandLabel)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        aboutMePanelLayout.setVerticalGroup(
            aboutMePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(aboutMePanelLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(aboutMeLabel)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(aboutMePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(staticAgeLabel)
                    .addComponent(ageLabel))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(aboutMePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(staticGenderLabel)
                    .addComponent(genderLabel))
                .addGap(12, 12, 12)
                .addGroup(aboutMePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(staticLocationLabel)
                    .addComponent(locationLabel))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(aboutMePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(staticGenreLabel)
                    .addComponent(favoriteGenreLabel))
                .addGap(18, 18, 18)
                .addGroup(aboutMePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(staticSongLabel)
                    .addComponent(favoriteSongLabel))
                .addGap(18, 18, 18)
                .addGroup(aboutMePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(staticBandLabel)
                    .addComponent(favoriteBandLabel))
                .addContainerGap(49, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(aboutMePanel, javax.swing.GroupLayout.PREFERRED_SIZE, 318, javax.swing.GroupLayout.PREFERRED_SIZE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(aboutMePanel, javax.swing.GroupLayout.DEFAULT_SIZE, 255, Short.MAX_VALUE)
        );
    }// </editor-fold>//GEN-END:initComponents
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel aboutMeLabel;
    private javax.swing.JPanel aboutMePanel;
    private javax.swing.JLabel ageLabel;
    private javax.swing.JLabel favoriteBandLabel;
    private javax.swing.JLabel favoriteGenreLabel;
    private javax.swing.JLabel favoriteSongLabel;
    private javax.swing.JLabel genderLabel;
    private javax.swing.JLabel locationLabel;
    private javax.swing.JLabel staticAgeLabel;
    private javax.swing.JLabel staticBandLabel;
    private javax.swing.JLabel staticGenderLabel;
    private javax.swing.JLabel staticGenreLabel;
    private javax.swing.JLabel staticLocationLabel;
    private javax.swing.JLabel staticSongLabel;
    // End of variables declaration//GEN-END:variables
}
